package com.ctg.itrdc.sysmgr.portal.api.service;

import java.util.List;

import com.ctg.itrdc.pasp.core.IBaseService;
import com.ctg.itrdc.sysmgr.portal.api.dto.FuncCompDTO;
import com.ctg.itrdc.sysmgr.portal.common.constant.PrivGrantEnum.GrantSysobjType;
import com.ctg.itrdc.sysmgr.portal.data.entity.FuncComp;

public interface IFuncCompService extends IBaseService<FuncComp, Long, FuncCompDTO>{

	public List<FuncCompDTO> selectCompList(Long sysPostId, Long sysUserId);

	public List<FuncCompDTO> selectByIds(GrantSysobjType sysobjType, FuncCompDTO dto,
			Long... ids);

	public List<FuncCompDTO> selectCompList(Long sysPostId, Long sysUserId,
			FuncCompDTO funcCompDTO);

	public List<FuncCompDTO> selectCompList(String grantObjType, Long grantObjId,
			FuncCompDTO funcCompDTO);

	public Boolean existComp(String grantObjType, Long grantObjId, FuncCompDTO dto);

}
